package ginx

import (
	"fmt"

	"github.com/gin-gonic/gin"
)

type Server struct {
	*gin.Engine
	Addr string
}

func (s *Server) Start() error {
	fmt.Printf("启动http服务，addr: %s\n", s.Addr)
	return s.Engine.Run(s.Addr)
}
